// !@#$McCaBe-InStRuMeNtAtIoN$#@!
// Instrumented with the McCabe Java Parser
// Version: 8.1.0.1 - 20110309
// Using Path Vector Instrumentation
// Date: Sun Apr 01 2012 20:43:41
package Service;

import com.mccabe.*;


class OutputManager_67303c61e918ac8fc0825570fb9ed02d {
    static java.lang.Object info[];
    static {
        info = new java.lang.Object[2];
        info[0] = new Integer(-1);
        info[1] = new String("R:\\yu\\Concordia\\SOEN 344 Design II\\Term Assignment\\Code Repo\\trunk\\Iteration 3\\ERS\\src\\Service\\OutputManager.java");
    }
}


/**
 * Manages user output
 * @author Yury Kitaev
 *
 */

public class OutputManager 
{
	/**
	 * Prints text with new line
	 * @param iOutput The message to output
	 */
	public static void println(String iOutput)
	{
int _mcFreq_438ef2c046207dcb2f24d0a3091e1361[] = new int[1];
PathVec_ERS_Iter3.enterMethod(OutputManager_67303c61e918ac8fc0825570fb9ed02d.info,0,_mcFreq_438ef2c046207dcb2f24d0a3091e1361,0);

		System.out.println(iOutput);
	}
	
	/**
	 * Prints text without new line
	 * @param iOutput
	 */
	public static void print(String iOutput)
	{
int _mcFreq_e9d28006ecfccbdd9a3d99fa5b4b3b66[] = new int[1];
PathVec_ERS_Iter3.enterMethod(OutputManager_67303c61e918ac8fc0825570fb9ed02d.info,1,_mcFreq_e9d28006ecfccbdd9a3d99fa5b4b3b66,0);

		System.out.print(iOutput);
	}

	/**
	 * Offers a of several items
	 * @param title The header of the menue
	 * @param options Items to choose from. Don't include numbers, the are generated.
	 */
	public static void offerChoiceMenu(String title, String ... options)
	{
int _mcFreq_7c39ac83e44c532389bddf522f4061cb[] = new int[3];
PathVec_ERS_Iter3.enterMethod(OutputManager_67303c61e918ac8fc0825570fb9ed02d.info,2,_mcFreq_7c39ac83e44c532389bddf522f4061cb,0);

		println("\n" + title);
		for (int i = 0; 
PathVec_ERS_Iter3.decision(OutputManager_67303c61e918ac8fc0825570fb9ed02d.info,2,_mcFreq_7c39ac83e44c532389bddf522f4061cb,1,2,
PathVec_ERS_Iter3.testCondition(i < options.length
))
; ++i)
		{
			println("\t" + (i + 1) + ". " + options[i]);
		} 
		println("");
	}
}
